package com.bdqn.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.demo.dao.ResourceDao;
import com.bdqn.demo.pojo.Resource;
import com.bdqn.demo.pojo.Role;
import com.bdqn.demo.service.ResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 资源表(Resource)表服务实现类
 *
 * @author makejava
 * @since 2024-01-16 19:08:22
 */
@Service("resourceService")
public class ResourceServiceImpl extends ServiceImpl<ResourceDao, Resource> implements ResourceService {

    @Autowired
    private ResourceDao resourceDao;

    @Override
    public List<Resource> selectPermission() {
        return list();
    }

    @Override
    public List<Role> selectByUrl(String uri) {
        return resourceDao.selectByUrl(uri);
    }
}

